<template>
  <el-button type="success" @click="toHome">登陆页面</el-button>
</template>

<script setup>
import { ElButton } from "element-plus";
import { useRouter } from "vue-router";
const router = useRouter();
localStorage.clear();
const toHome = () => {
  localStorage.setItem("token", "token");
  router.push("/threeColumnLayout");
};
</script>

<style scoped lang="scss"></style>
